<?php
    class IndexController extends MvcController{
        public function index(){
            $news_list = $this -> model -> query("select * from news");
            //业务逻辑
            $this -> view -> assign('news',$news_list);
            //加载视图
            $this -> view -> display('index');
        }
        
        public function login(){
           $this -> view -> display('login');
        }
    }